home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Book of Tells
/
The Book of Tells.iso
/
vidgal.dir
/
00178_Script_178
< prev
next >
Wrap
Text File
|
1994-09-22
|
2KB
|
78 lines
on startMovie
set the puppet of sprite 1 to TRUE
set the puppet of sprite 2 to TRUE
set the visible of sprite 2 to FALSE
global lineNum
end startMovie
-- ******************************************************
-- Name: menuSelect
-- Description: Checks the position of the mouse in a text field
-- and highlights the current line. Pass it the number of the
-- text field. The variable lineNum is used internally to
-- stop looping to prevent the highlight from flashing and can
-- also be used externally to pass where the mouse was when the
-- user released the mouse button.
--
-- Example: checkMouse {castNumber)
-- ******************************************************
on menuSelect castNumber
global lineNum
set lineNum = 0
set hiliteSet = 0
set mousePos = 0
repeat while the stillDown
if the mouseCast = (castNumber) then
if lineNum = (the mouseLine) and the mouseV = mousePos then
nothing
else if the mouseLine = -1 then
set the hilite of field (castNumber) to 0
set lineNum = 0
else if the mouseV > 135 then
set the hilite of field (castNumber) to 0
set lineNum = 0
else if the mouseV < 60 then
set the hilite of field (castNumber) to 0
set lineNum = (the mouseLine)
else if the mouseH < 95 then
set the hilite of field (castNumber) to 0
set lineNum = 0
else if the mouseH > 180 then
set the hilite of field (castNumber) to 0
set lineNum = 0
else
hilite line (the mouseLine) of field (castNumber)
set lineNum = (the mouseLine)
set mousePos = the mouseV
end if
else
set the hilite of field (castNumber) to 0
set lineNum = 0
end if
end repeat
end checkMouse